package ebcs.scan.controller.sys;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import ebcs.app.auto.transmodel.sys.UseLoginReqModel;
import ebcs.app.auto.transmodel.sys.UserInforReqModel;
import ebcs.database.bean.sys.PaUser;
import ebcs.database.bean.sys.PaUserRoleFunc;
import ebcs.database.service.sys.IUserFuncManagerService;
import ebcs.database.service.sys.IUserManagerService;
import ebcs.scan.bean.sys.SysUserInfor;
import ebcs.scan.common.consts.KPlatSysConsts;
import jplat.core.session.JSession;
import jplat.core.session.redis.JRedisSession;
import jplat.core.trans.JAppBaseService;
import jplat.core.trans.JAppContext;
import jplat.core.trans.JAppContextFactory;
import jplat.error.exception.JSystemException;
import jplat.error.exception.JTransException;
import jplat.tools.config.JAppConfig;
 

/***
 *  系统管理
 * @author chenzhuo
 * @comment 
 */
@Controller
public class RoleManagerCtrl extends JAppBaseService
{
	private Logger logger = Logger.getLogger(RoleManagerCtrl.class);
	protected JAppContextFactory serviceFactory = new JAppContextFactory();
	 
	/**
	 * 角色添加
	 */
	@RequestMapping("/sys/user/addRole.do")
	public void addUser(HttpServletRequest request, HttpServletResponse response)
			throws JTransException, JSystemException {
		JAppContext context = serviceFactory.buildAppContextWithUser(request, response); // buildAppContextWithUser
																							// 自带客户信息.
		UserInforReqModel userReq = context.obtainReqModel(UserInforReqModel.class);
		Map rsModel = new HashMap();
		context.buildAppResponse(null);
	}
	
}
